using System;
using UnityEngine;

[Serializable]
public class hiddenhide : MonoBehaviour
{
	public GameObject hud;

	public void Update()
	{
		if (UnityEngine.Input.touchCount == 1)
		{
			Touch touch = Input.touches[0];
			if (touch.phase == TouchPhase.Began && GetComponent<GUITexture>().HitTest(touch.position))
			{
				hud.SetActiveRecursively(state: false);
				UnityEngine.Object.Destroy(gameObject);
			}
		}
	}

	public void Main()
	{
	}
}
